/**
 * 
 */
package com.qolome;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;
import org.springframework.cloud.netflix.zuul.filters.ZuulProperties;

/**
 * @Description: 网关服务
 * @author 姜锋
 * @date 2020年1月22日 下午11:47:59 
 * @version V1.0   
 *
 */
@SpringBootApplication
@EnableZuulProxy
public class GateWayApplication {
	
	public static void main(String[] args) throws Exception {
		SpringApplication.run(GateWayApplication.class, args);
	}
	
	@ConfigurationProperties("zuul")
	@RefreshScope
	public ZuulProperties zuulProperties() {
		return new ZuulProperties();
	}

}
